package org.example;

import io.netty.buffer.ByteBuf;
import io.netty.util.CharsetUtil;

/**
 * Author:qqw
 * Date:2024-06-19
 * Description:TODO
 */
public class DecodeUtil {

    public static String decode(ByteBuf msg){
        if(msg == null){
            return null;
        }
        return msg.toString(CharsetUtil.UTF_8);
    }
}
